package com.wuzf.service;


import com.wuzf.common.entity.CommonResult;
import com.wuzf.common.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "PROVIDER-PAYMENT")
public interface OrderService {


    @PostMapping("/payment/create")
    CommonResult create(@RequestBody Payment payment);


    @GetMapping("/payment/get/{id}")
    CommonResult findById(@PathVariable(value = "id") long id);

}
